package com.hxs.learn.job.core;

import com.hxs.learn.common.entity.BillSequenceKey;
import com.hxs.learn.service.core.BillService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class SysJob implements Job {

    @Autowired
    BillService billService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String key = billService.newBillNo(new BillSequenceKey("testId"));
        System.out.println(key);
    }
}
